{% load blog_tag %}
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}
    {% endblock %}</title>
</head>
<body>
    <div id="content">{% block content %}

    {% endblock %}</div>
    <div id="sidebar">
        <h2>my blog</h2>
            <p>this is my blog i've written {% my_first_tag %} posts so far</p>
     <h3>lates posts</h3>
        {% show_latest_posts 1 %}
        <h3>most commented posts</h3>
        {% get_most_commented_posts as most_commented_posts %}
        <ul>
            {% for commented_post in most_commented_posts %}
                <li>
                    <a href="{{ commented_post.get_absolute_url }}">{{ commented_post.title }}</a>
                </li>
            {% endfor %}

        </ul>
    <p><a href="{% url 'post_feed' %}">subscrobe to my RSS feed</a></p>
    </div>

</body>
</html>